package com.ysu.demo.controller;

import com.ysu.demo.VO.ResultVO;
import com.ysu.demo.annotation.UserToken;
import com.ysu.demo.service.STSService;
import com.ysu.demo.utlis.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：lhw
 * @date ：Created in 2019/8/28 14:38
 */
@RestController
@RequestMapping("/sts")
public class StsController {
    @Autowired
    STSService stsService;

    @PostMapping("/sign")
    @UserToken
    public ResultVO getSing(){
        return ResultUtil.TrueResult(stsService.getSign());
    }

}
